bitkeeper revision 1.1139.1.1 (4110b72fhtHFIf4Ul13KpCx5pOkJ7w)
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Wed, 4 Aug 2004 10:15:11 +0000 (10:15 +0000)
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Wed, 4 Aug 2004 10:15:11 +0000 (10:15 +0000)
Make pages used for LDT writable when they get freed.
Fixes ltp thread creation test failure.

linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c

index d243b3a766fed1b0fdf8d44d49e8b726ccdbc32f..9d7497e4d5d702e8724a80a1b55abb5ab900f638 100644 (file)
@@ -71,6 +71,9 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
 #endif
        }
        if (oldsize) {
+               make_pages_writeable(oldldt, (oldsize * LDT_ENTRY_SIZE) /
+                       PAGE_SIZE);
+               flush_page_update_queue();
                if (oldsize*LDT_ENTRY_SIZE > PAGE_SIZE)
                        vfree(oldldt);
                else